package com.kandroid.designpattern.state.demo2.states;

import com.kandroid.designpattern.state.demo2.ATMAction;
import com.kandroid.designpattern.state.demo2.ATMState;
import com.kandroid.designpattern.state.demo2.BaseStateClass;

import java.util.Arrays;
import java.util.List;

public class OutMoneyState extends BaseStateClass {
    public OutMoneyState(ATMAction atmAction) {
        super(atmAction);
    }

    @Override
    protected List<String> getSupportedActions() {
        return Arrays.asList(ACTION_BACK_BANKCARD, ACTION_INPUT_PASSWORD);
    }

    @Override
    public String getName() {
        return ATMState.STATE_OUT_MONEY;
    }
}
